export default {
  namespaced: true,
  state: {
    update: false,
    orderId: null
  },
  mutations: {
    SET_DATA: (state, data) => {
      for (const key in data) {
        state[key] = data[key];
      }
    }
  },
  actions: {
    setDate({ commit }, data) {
      commit('SET_DATA', data);
    },
    getOrderId({ commit }, orderId) {
      commit('SET_DATA', {
        orderId: orderId
      });
    }
  }
};
